-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
flake: add darwin devshell dependency #762
Conversation
I think that issue is because the flake uses a pinned helix repo for working around submodules. The pinned repo gets outdated and the language submodule isnt available. Since the fix is merged into Nix now, we should remove the workaround once it lands on unstable Nix. |
it landed a couple of days ago I think
(that is the latest version) I wasn't able to build the project without that fix (where submodules are automatically updated). thanks for the quick feedback. Let me know also if this PR looks ok to you. |
Ah, if it landed, we should remove the submodule hack (maybe in this PR?). About the dependency, if |
so libiconv is already added as a global dependency for darwin in nixpkgs (basically for every crate as a buildInput). Let me know if that makes sense or if I misunderstood something. |
I've removed the helix version fix. |
Ah I see, yeah it makes sense to put it in dev only. I didn't know that some deps were "hardcoded" in |
Just this one https://github.com/NixOS/nixpkgs/blob/master/pkgs/build-support/rust/default.nix#L125 What do you think about the commit that removes the fixed helix dependency ? let me test the latest nix-cargo-integration. |
I tested with updated flake inputs and the dev shell is working perfectly. I removed the commit adding libiconv to the dev dependencies. Let me know about the version fix removal thing. |
Hmm, the syntax highlighting is still not working? I guess it might be something else then? Could you also check and see if Protobuf files are highlighted? They also do not highlight for me so I'm wondering if it's the same problem. |
It might not be picking up new submodules? I had to |
I just checked on a protobuf file with the change included in this PR and yes syntax highlighting is working for a
@archseer you might be right here, it could be a change not picked up in the submodule. I'm going to read more about submodules and nix. I think this PR can be merged though. |
@yusdacra just a littlle more information on this. |
This adds a dependency needed for local builds for darwin. This is pretty straightforward
(from here this is just a description of a weird behavior related to flakes, not related to this PR).
@yusdacra the weirdest thing happened today. Trying to build helix from the flake, I couldn't get some changes that actually work with local compilation.
If you look at the following PR, trying to build it from the flake did not enable syntax highlighting on svelte files (which is what the pr is about). However a local
cargo build --release
actually works.I can't explain it. (there is a svelte example on the PR in case you are interested in testing).
(I verified that I was on the right commit)
(this is what the flake.lock contained)
and the flake
You can try on the latest master as well. Svelte file syntax highlighting doesn't work, even though on local compilation it does.
Maybe that's just a darwin problem.
I'm not sure how to debug this further. Happy to provide more informations.
(if you think it's not that important, feel free to ignore, happy to let this go, just thought you might be interested)